package com.accp.vehiclecare.biz.lscbiz;

import com.accp.vehiclecare.dao.lscdao.RstuvuMapper;
import com.accp.vehiclecare.vo.lscvo.RstuvuVo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class RstuvuBiz {
    @Autowired
    private RstuvuMapper dao;

    @Transactional(propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, readOnly = true)
    public PageInfo<RstuvuVo> querytj(Integer sid, String rln, String uname,Integer size,Integer num){
        PageHelper.startPage(num,size);
        PageInfo<RstuvuVo> info=new PageInfo<RstuvuVo>(dao.querjs(sid,rln,uname));
        return info;
    }
}